//
// Created by zhoubigbo on 2017/12/14.
//

#ifndef FFMPEGTEST_AUDIO_H
#define FFMPEGTEST_AUDIO_H


extern "C"{
#include "libavformat/avformat.h"
#include <libswresample/swresample.h>
};

class Audio{

public:

    Audio();

    virtual ~Audio();

    AVCodecContext *codecCtx;
    AVCodec *codec;

    AVSampleFormat in_sampleFormat;
    AVSampleFormat out_sampleFormat;
    int in_sample_rate;
    int out_sample_rate;
    uint64_t in_ch_layout;
    uint64_t out_ch_layout;
    int out_ch_no;
    SwrContext *swrCtx;
    uint8_t *out_buffer;
    AVFrame *frame;

};


#endif //FFMPEGTEST_AUDIO_H
